<?php
require_once("db.php");
$param_url=$_SERVER['QUERY_STRING'];
parse_str($param_url);
$r=new ResourceDB();
$resource=$r->SelectById($Id);

?>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title><?php print $resource->Name1 ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/video-js.min.css" rel="stylesheet" type="text/css">
<script src="js/jquery.min.js"></script>
<script src="js/video.js"></script>
</head>

<style type="text/css">
h2{text-align:center;}
.play{width:800px;margin: 0 auto;}
</style>
<body>
<?php print "<h2>正在播放：".$resource->Name1."</h2>";?>
<div class="play">
<video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"
      poster="http://video-js.zencoder.com/oceans-clip.png"
      data-setup="{}">
    <source src="<?php print $GLOBALS['fileServer'].$resource->Name2;?>" type='video/mp4' />
    <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
  </video>
  </div>
</body>
</html>

